
* {
    padding: 0;
    margin: 0;
}

html,
body,
#app {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    background-color: #111;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
/* #app{
    position: relative;
} */

/* 视频翻页 */
.swiper-container {
    width: 10rem;
    height: 100%;
    background-color: black;
    left: 50%;
    margin-left: -5rem;
    position: relative;
}
.swiper-slide{
    /* 一定要设置溢出隐藏，不然会显示下一页的动画 */
    overflow: hidden;
}
.swiper-slide video{
    width: 100%;
    height: 100%;
    outline: none;
}

/* 底部导航栏 */
footer{
    width: 10rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -5rem;
    z-index: 100;
    background-color: #000;
}
footer ul{
    width: 100%;
    list-style: none;margin: 0;padding: 0;
    display: flex;
    height: 50px;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
}
footer ul li{
    flex: 1;
}

footer ul li img{
    height: 40px;
    vertical-align: middle;
    border-radius: 5px;
}

/* 播放按钮 */
.play-btn{
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -50px;
    margin-top: -75px;
    opacity: 0.5;
    z-index: 50;
}

/* 作者头像 */
.author{
    width: 50px;
    height: 50px;
    position: absolute;
    right: 20px;
    top: 50%;
    z-index: 100;
    border: solid 2px rgb(255, 53, 86);
    border-radius: 50px;
}

/* 点赞数量 */
.reward-num{
    width: 50px;
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: 70px;
    z-index: 100;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}
.reward-num img{
    width: 100%;
}

/*  点赞出现的心 */
.hearts{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 50;
}
.hearts img{
    position: absolute;
    animation: heart-ani 1s ease-in-out;
    opacity: 0;
}

/* 小心心动画 */
@keyframes heart-ani{
    0%{
        opacity: 1;
        transform: scale(1.5);
    }
    10%{
        transform: scale(1);
    }
    20%{
        transform: scale(1.25);
    }
    30%{
        transform: scale(1);
    }
    100%{
        transform: scale(3) translateY(-100px);
        opacity: 0;
    }
}